package processors;

import java.util.ArrayList;
import java.util.Map;

public class ProcessorController {
	//private SymbolProcessor symbolProcessor = new SymbolProcessor();
	private CaseProcessor caseProcessor = new CaseProcessor();
	//private WordsSplitProcessor wordSplitProcessor = new WordsSplitProcessor();
	private StopwordsProcessor stopwordsProcessor = new StopwordsProcessor();
	private FrequencyProcessor frequencyProcessor = new FrequencyProcessor();
	
	public Map<String, Integer> process(ArrayList<String> contentList){		
		ArrayList<String> contentInLowerCase = caseProcessor.process(contentList);
		//ArrayList<String> contentAfterSplitted = wordSplitProcessor.process(contentInLowerCase);
		ArrayList<String> contentWithoutStopwords = stopwordsProcessor.process(contentInLowerCase);
		//ArrayList<String> contentWithoutSymbol = symbolProcessor.process(contentWithoutStopwords);
		Map<String, Integer> frequency = frequencyProcessor.process(contentWithoutStopwords);
		return frequency;
	}
	
}
